<template>
    <div>
        <h1>自定义hook操作</h1>
        <h1>x:{{x}}  y:{{y}}</h1>
    </div>
    
</template>
<script lang="ts">
import {defineComponent, onBeforeMount, onMounted, ref} from 'vue'
import hooks from "./index"

export default defineComponent({
    name:"建哥",
    setup() {
        const {x,y} = hooks();
        return {
            x,
            y
        }
    },
    
})

</script>
